/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package idea.model.qnrlibrary;


import java.io.Serializable;
import java.util.Date;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.xml.bind.annotation.XmlRootElement;


/**
 *
 * @author rejun001
 */
@Entity
@Table( name = "eqc_users" )
@XmlRootElement
@NamedQueries( 
{
    @NamedQuery( name = "EqcUsers.findAll" , query = "SELECT e FROM EqcUsers e" ) ,
    @NamedQuery( name = "EqcUsers.findByUaName" , query = "SELECT e FROM EqcUsers e WHERE e.uaName = :uaName" ) ,
    @NamedQuery( name = "EqcUsers.findByDescription" , query = "SELECT e FROM EqcUsers e WHERE e.description = :description" ) ,
    @NamedQuery( name = "EqcUsers.findByName" , query = "SELECT e FROM EqcUsers e WHERE e.name = :name" ) ,
    @NamedQuery( name = "EqcUsers.findByTitle" , query = "SELECT e FROM EqcUsers e WHERE e.title = :title" ) ,
    @NamedQuery( name = "EqcUsers.findByPhoneNumber" , query = "SELECT e FROM EqcUsers e WHERE e.phoneNumber = :phoneNumber" ) ,
    @NamedQuery( name = "EqcUsers.findByFaxNumber" , query = "SELECT e FROM EqcUsers e WHERE e.faxNumber = :faxNumber" ) ,
    @NamedQuery( name = "EqcUsers.findByTelexNumber" , query = "SELECT e FROM EqcUsers e WHERE e.telexNumber = :telexNumber" ) ,
    @NamedQuery( name = "EqcUsers.findByMailAddress" , query = "SELECT e FROM EqcUsers e WHERE e.mailAddress = :mailAddress" ) ,
    @NamedQuery( name = "EqcUsers.findByElectronicMailAddress" , query = "SELECT e FROM EqcUsers e WHERE e.electronicMailAddress = :electronicMailAddress" ) ,
    @NamedQuery( name = "EqcUsers.findByTradeArea" , query = "SELECT e FROM EqcUsers e WHERE e.tradeArea = :tradeArea" ) ,
    @NamedQuery( name = "EqcUsers.findByDateCreated" , query = "SELECT e FROM EqcUsers e WHERE e.dateCreated = :dateCreated" ) ,
    @NamedQuery( name = "EqcUsers.findByCreatedBy" , query = "SELECT e FROM EqcUsers e WHERE e.createdBy = :createdBy" ) ,
    @NamedQuery( name = "EqcUsers.findByDateModified" , query = "SELECT e FROM EqcUsers e WHERE e.dateModified = :dateModified" ) ,
    @NamedQuery( name = "EqcUsers.findByModifiedBy" , query = "SELECT e FROM EqcUsers e WHERE e.modifiedBy = :modifiedBy" )
} )
public class EqcUsers implements Serializable
{
    private static final long serialVersionUID = 1L;
    @Id
    @Basic( optional = false )
    @Column( name = "ua_name" )
    private String uaName;
    @Column( name = "description" )
    private String description;
    @Column( name = "name" )
    private String name;
    @Column( name = "title" )
    private String title;
    @Column( name = "phone_number" )
    private String phoneNumber;
    @Column( name = "fax_number" )
    private String faxNumber;
    @Column( name = "telex_number" )
    private String telexNumber;
    @Column( name = "mail_address" )
    private String mailAddress;
    @Column( name = "electronic_mail_address" )
    private String electronicMailAddress;
    @Column( name = "trade_area" )
    private String tradeArea;
    @Basic( optional = false )
    @Column( name = "date_created" )
    @Temporal( TemporalType.TIMESTAMP )
    private Date dateCreated;
    @Basic( optional = false )
    @Column( name = "created_by" )
    private String createdBy;
    @Column( name = "date_modified" )
    @Temporal( TemporalType.TIMESTAMP )
    private Date dateModified;
    @Column( name = "modified_by" )
    private String modifiedBy;


    public EqcUsers()
    {
    }


    public EqcUsers( String uaName )
    {
        this.uaName = uaName;
    }


    public EqcUsers( String uaName , Date dateCreated , String createdBy )
    {
        this.uaName = uaName;
        this.dateCreated = dateCreated;
        this.createdBy = createdBy;
    }


    public String getUaName()
    {
        return uaName;
    }


    public void setUaName( String uaName )
    {
        this.uaName = uaName;
    }


    public String getDescription()
    {
        return description;
    }


    public void setDescription( String description )
    {
        this.description = description;
    }


    public String getName()
    {
        return name;
    }


    public void setName( String name )
    {
        this.name = name;
    }


    public String getTitle()
    {
        return title;
    }


    public void setTitle( String title )
    {
        this.title = title;
    }


    public String getPhoneNumber()
    {
        return phoneNumber;
    }


    public void setPhoneNumber( String phoneNumber )
    {
        this.phoneNumber = phoneNumber;
    }


    public String getFaxNumber()
    {
        return faxNumber;
    }


    public void setFaxNumber( String faxNumber )
    {
        this.faxNumber = faxNumber;
    }


    public String getTelexNumber()
    {
        return telexNumber;
    }


    public void setTelexNumber( String telexNumber )
    {
        this.telexNumber = telexNumber;
    }


    public String getMailAddress()
    {
        return mailAddress;
    }


    public void setMailAddress( String mailAddress )
    {
        this.mailAddress = mailAddress;
    }


    public String getElectronicMailAddress()
    {
        return electronicMailAddress;
    }


    public void setElectronicMailAddress( String electronicMailAddress )
    {
        this.electronicMailAddress = electronicMailAddress;
    }


    public String getTradeArea()
    {
        return tradeArea;
    }


    public void setTradeArea( String tradeArea )
    {
        this.tradeArea = tradeArea;
    }


    public Date getDateCreated()
    {
        return dateCreated;
    }


    public void setDateCreated( Date dateCreated )
    {
        this.dateCreated = dateCreated;
    }


    public String getCreatedBy()
    {
        return createdBy;
    }


    public void setCreatedBy( String createdBy )
    {
        this.createdBy = createdBy;
    }


    public Date getDateModified()
    {
        return dateModified;
    }


    public void setDateModified( Date dateModified )
    {
        this.dateModified = dateModified;
    }


    public String getModifiedBy()
    {
        return modifiedBy;
    }


    public void setModifiedBy( String modifiedBy )
    {
        this.modifiedBy = modifiedBy;
    }


    @Override
    public int hashCode()
    {
        int hash = 0;
        hash += ( uaName != null ? uaName.hashCode() : 0 );
        return hash;
    }


    @Override
    public boolean equals( Object object )
    {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if ( !( object instanceof EqcUsers ) )
        {
            return false;
        }
        EqcUsers other = (EqcUsers) object;
        if ( ( this.uaName == null && other.uaName != null ) || ( this.uaName != null && !this.uaName.equals( other.uaName ) ) )
        {
            return false;
        }
        return true;
    }


    @Override
    public String toString()
    {
        return "idea.model.qnrlibrary.EqcUsers[ uaName=" + uaName + " ]";
    }
    
}
